package hui.com.dao;

import hui.com.authority.UsersLogEntity;
import hui.com.authority.UsersEntity;
import io.lettuce.core.dynamic.annotation.Param;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface UserLogDao {
    UsersLogEntity getUsers(@Param("users") UsersEntity usersEntity);

    UsersLogEntity getUserUID(@Param("UID") Integer UID);

    /**
     * 钥匙更替
     * @param id
     * @param secretKey，新钥匙
     * @param oldSecretKey 旧钥匙
     * @return
     */
    boolean updateSecretKeyAndOldSecretKey(@Param("id")Integer id,@Param("secretKey")String secretKey,@Param("oldSecretKey")String oldSecretKey);
}
